<!-- 工作台头部组件 -->
<template>
  <div>
    <el-header class="top">
      <img
        src="../../assets/img/aside.png"
        style="width: 20px; height: 18px; cursor: pointer"
      />

      <el-button type="primary" class="btn">
        {{ route.meta.title }}
      </el-button>
    </el-header>
  </div>
</template>

<script lang="ts" setup>
import { ref } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
</script>

<style lang="scss" scoped>
.top {
  height: 60px;
  background: #ffffff;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: 20px;
  margin-left: 10px;
  margin-bottom: 10px;
  .btn {
    width: 114px;
    height: 30px;
    background: #6675ff;
    border-radius: 4px;
    margin-left: 20px;
    border: 0;
  }
}
</style>
